package kse;

public class J01Account {

	// 은행 예금 처리 프로그램
	// 입력값:계좌번호,잔액,월이율,연이율,인출액,입금액,통장개설일

	public static void main(String[] args) {
		// 변수 선언및 초기화
		int aid = 0;
		int balance = 0;
		double interestRate = 0;
		String dateCreated = "2014-03-11";
		double getMonthlyIntersetRate;
		int withDraw = 0;
		int deposit = 0;
		// 계산및 연산
		// 변수초기화 없이 수식을 사용하면 오류발생

		getMonthlyIntersetRate = interestRate / 12;
		balance = balance + deposit; // 입금
		balance = balance - withDraw; // 인출
		// 결과 출력
		System.out.println(aid);
		System.out.println(interestRate);
		System.out.println(getMonthlyIntersetRate);
		System.out.println(dateCreated);
		System.out.println(balance);
		System.out.println(withDraw);
		System.out.println(dateCreated);

		
		
		//시험값:1122,20000,4.5,2500인출,3000인출
		aid = 1122;//계좌번호
		balance = 20000;//잔액
		interestRate = 4.5;//연이율
		withDraw = 2500;
				
		//계산
		
		getMonthlyIntersetRate = interestRate /12;
		balance = balance - withDraw;
		 //결과출력
		
		System.out.println(aid);
		System.out.println(interestRate);
		System.out.println(getMonthlyIntersetRate);
		System.out.println(balance);
		System.out.println(dateCreated);
		System.out.println(deposit);
		
		
		
		
		
		
		
		
	}
}
